// Main JavaScript file for the project

// Example functionality - you can add your project-specific code here

// DOM content loaded event listener
document.addEventListener('DOMContentLoaded', function() {
  console.log('Document loaded successfully');
  
  // Example: Add a simple interaction
  const container = document.querySelector('.container');
  if (container) {
    console.log('Container element found');
    // Add your code here to interact with the container
  }
  
  // Add more functionality as needed for your specific project
});

// Example utility functions
function debounce(func, wait) {
  let timeout;
  return function executedFunction(...args) {
    const later = () => {
      clearTimeout(timeout);
      func(...args);
    };
    clearTimeout(timeout);
    timeout = setTimeout(later, wait);
  };
}

function throttle(func, limit) {
  let inThrottle;
  return function() {
    const args = arguments;
    const context = this;
    if (!inThrottle) {
      func.apply(context, args);
      inThrottle = true;
      setTimeout(() => inThrottle = false, limit);
    }
  };
}